package gateway;

import gateway.filters.pre.SimpleFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableZuulProxy
@EnableDiscoveryClient
public class SpringCloudApiGatewayApplication
{

	@Bean
	public SimpleFilter simpleFilter() {
		return new SimpleFilter();
	}

	public static void main(String[] args)
	{
		SpringApplication.run(SpringCloudApiGatewayApplication.class, args);
	}
}
